package entity;

public class NormalClass {
  private int id;
  private String username;

  public NormalClass() {
    System.out.println("---NormalClass的无参构造函数--");
  }

  public NormalClass(int id) {
    System.out.println("-----int 类型作为构造的一个参数");
    this.id = id;
  }

  public NormalClass(Integer id) {
    System.out.println("-----Integer 类型作为构造的一个参数");
    this.id = id;
  }

  public NormalClass(String username) {
    System.out.println("-----String 类型作为构造的一个参数");
    this.username = username;
  }

  public NormalClass(int id, String username) {
    System.out.println("-----第一个是int,第二个是string的构造函数");
    this.id = id;
    this.username = username;
  }

  public NormalClass(Integer id, String username) {
    System.out.println("-----第一个是Integer,第二个是string的构造函数");
    this.id = id;
    this.username = username;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  @Override
  public String toString() {
    return "NormalClass{" +
            "id=" + id +
            ", username='" + username + '\'' +
            '}';
  }
}
